<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学生信息管理</title>
    <link rel="stylesheet" href="/css/layui.css">
    <link rel="stylesheet" href="/css/dp02.css">
    <script src="/js/jquery-3.7.1.min.js"></script>
</head>
<body>
<div class="container">
    <div class="layui-row">
        <div class="layui-col-xs12">
            <h1 style="text-align: center">学生信息管理</h1>
        </div>
    </div>

    <div class="layui-row">
        <div class="layui-col-xs12 toolbar">
            <button type="button" id="btnAdd" class="layui-btn layui-btn-sm layui-btn-normal">
                <i class="layui-icon layui-icon-addition"></i>
            </button>

            <div class="layui-inline">
                <input type="text" id="sno" placeholder="学号" class="layui-input">
            </div>
            <div class="layui-inline">
                <input type="text" id="name" placeholder="姓名" class="layui-input">
            </div>
            <div class="layui-inline">
                <input type="text" id="age" placeholder="年龄" class="layui-input">
            </div>
            <div class="layui-inline">
                <select id="sex" class="layui-select">
                    <option value="">请选择性别</option>
                    <option value="1">男</option>
                    <option value="2">女</option>
                </select>
            </div>
            <button type="button" id="btnSearch" class="layui-btn layui-btn-sm layui-btn-primary">查询</button>
        </div>
    </div>

    <div class="layui-row">
        <div class="layui-col-xs12">
            <table id="studentTable" lay-filter="studentTableFilter"></table>
        </div>
    </div>
</div>

<form class="layui-form dlgcontainer" id="studForm" lay-filter="studFormFilter" style="display: none;">
    <div class="demo-reg-container">
        <input type="hidden" name="id" id="id" value="">

        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <div class="layui-input-prefix">
                    <i class="layui-icon layui-icon-vercode"></i>
                </div>
                <input type="text" name="sno" lay-verify="required" placeholder="学号" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <div class="layui-input-prefix">
                    <i class="layui-icon layui-icon-password"></i>
                </div>
                <input type="text" name="name" lay-verify="required" placeholder="姓名" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">性别</label>
            <div class="layui-input-block">
                <input type="radio" name="sex" value="1" title="男">
                <input type="radio" name="sex" value="2" title="女">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <div class="layui-input-prefix">
                    <i class="layui-icon layui-icon-username"></i>
                </div>
                <input type="text" name="age" placeholder="年龄" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="stud-dlg" id="btnOK">确定</button>
        </div>
    </div>
</form>

<script src="/js/layui.js"></script>
<script src="/pagejs/dp02.js"></script>
</body>
</html>
